package com.yfp.machine.enums;

/**
 * 订单状态枚举
 *
 *
 * @date 2023/12/13
 */
public enum OrderStatusEnum {
    /**
     * 未支付
     */
    UNPAID(1, "未支付"),
    /**
     * 已取餐
     */
    ORDERED(2, "已取餐"),
    /**
     * 已完成
     */
    COMPLETED(3, "已完成"),
    /**
     * 已退款
     */
    REFUND(4, "已退款"),
    /**
     * 异常
     */
    EXCEPTION(5, "异常"),
    /**
     * 已取消
     */
    CANCEL(6, "已取消");

    private Integer code;
    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
